<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$id}</title>
	<include file="Public:header" />
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerButton.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerRadio.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script> 
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/jquery-validation/jquery.validate.min.js" type="text/javascript"></script> 
    <script src="__PUBLIC__/lib/jquery-validation/jquery.metadata.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/jquery-validation/messages_cn.js" type="text/javascript"></script>
    <script type="text/javascript"> 
       $(function ()
        {
          
             $("#detailform").ligerForm();
        }); 
        function f_subset()
        {
            return $("#detailform").serialize();
        }
         function f_save(){
        	 
        	 $.post('__URL__/edit/',$("#detailform").serialize(),function(data){
        		
        		 LG.showMessage(data, function () { 
         			window.parent.grid.loadData();
         			 window.parent.mydialog.close(); 
                     //要先刷新表格,再关闭窗口,否则表格不会刷新 
                 });
        	 });
         }
        function resetPwd(){
        	var pass	 =	 $('#resetPwd').val();
        	
       		 $.post("__URL__/resetPwd/","ajax=1&id={$vo.id}&password="+encodeURIComponent(pass),function(data){
        			var result=jQuery.parseJSON(data);
				alert(result.info);
      		  });
       }
       
    </script> 
  <style type="text/css">
         body{ font-size:12px;}
        .l-table-edit {}
        .l-table-edit-td{ padding:4px;}
        .l-button-submit,.l-button-reset{width:80px; float:left; margin-left:10px; padding-bottom:2px;}
        .l-verify-tip{ left:230px; top:120px;}
    </style>

</head>
<body style="padding:10px">

<table cellpadding=3 cellspacing=3 class="l-table-edit">
<tr>
	<td class="l-table-edit-td">重置密码：</td>
	<td class="l-table-edit-td" ><input type="text" name="resetPwd" id="resetPwd" ltype="text"> </td>
	<td class="l-table-edit-td" ><input type="button" value="重置密码" onclick="resetPwd()"  style="height:25px" align="right" class="l-button l-button-reset"></td>
</tr>
<tr>
	<td class="l-table-edit-td" colspan="3"><hr></td>
</tr>
</table>

<div></div>
<form method='post'  id="detailform" >
<table cellpadding=3 cellspacing=3 class="l-table-edit">
<tr>
	<td class="l-table-edit-td" >用户名：</td>
	<td class="l-table-edit-td" colspan="2">
		<input type="text" ltype="text" name="account" value="{$vo.account}">
	</td>
</tr>
<tr>
	<td class="l-table-edit-td" >昵称：</td>
	<td class="l-table-edit-td" colspan="2">
		<input type="text" ltype="text" name="nickname" value="{$vo.nickname}">
	</td>
</tr>

<tr>
	<td class="l-table-edit-td">状态：</td>
	<td class="l-table-edit-td" colspan="2">
		<select  ltype="select"  name="status">
			<option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
			<option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
		</select>
	</td>
</tr>
<tr>
	<td class="l-table-edit-td">备  注：</td>
	<td class="l-table-edit-td" colspan="2">
		<textarea class="l-textarea"  name="remark" rows="5" cols="40">{$vo.remark}</textarea>
	</td>
</tr>
<tr>
	<td></td>
	<td class="center"><input type="hidden" name="id" value="{$vo.id}" >
	<input type="hidden" name="ajax" value="1">
	<!--<input type="button" value="保 存" onclick="save()" class="l-button l-button-submit">-->
	<input type="reset" class="l-button l-button-reset" value="清 空" >
	</td>
</tr>
</table>
</form>
<div style="display:none"></div>
</body>
</html>

